<html>
  <head>
    <meta charset="utf-8" />
    <title>Box2D Unit Test</title>
    <script type="systemjs-importmap">
      {
        "imports": {
          "@box2d": "../build/index.js"
        }
      }
    </script>
    <script src="https://unpkg.com/systemjs@6.7.0/dist/system.js"></script>
    <script type="text/javascript">

    function boot(args) {
      System.import("./build/unit-test.js").then(function(unit_test) {
        unit_test.main();
      }).catch(console.error);
    }

    window.addEventListener('load', function(event) {
      const args = window.location.search.substring(1).split('&'); // args from window location
      console.log(args);
      boot(args);
    });

    </script>
  </head>
</html>
